package com.wx.test.service;


import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

//@Component
//@Aspect
//public class Operator {
//
//    @Pointcut("execution(* com.wx.test..*.*(..))")
//    public void poincut(){}
//
//    @Before("poincut()")
//    public void befor(JoinPoint  joinPoint)
//    {
//        System.out.print("this is befor");
//    }
//
//    @After("poincut()")
//    public void after()
//    {
//        System.out.print("this is after");
//    }
//
//    @AfterReturning(value = "poincut()",returning = "returnVal")
//    public void afterReturn(JoinPoint joinPoint,Object returnVal)
//    {
//        System.out.print("this is afterReturn:" + returnVal);
//    }
//
//
//}
